//
//  JRBaseView.m
//  ikarosKit
//
//  Created by rui on 2024/10/17.
//

#import "JRBaseView.h"

@interface JRBaseView ()

@property (assign, nonatomic) BOOL didLoaded;

@end

@implementation JRBaseView

- (instancetype)initWithCoder:(NSCoder *)coder {
    self = [super initWithCoder:coder];
    if (self) {
        if (!self.didLoaded) [self customInit];
    } return self;
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        if (!self.didLoaded) [self customInit];
    } return self;
}

- (void)customInit {
    self.didLoaded = YES;
    self.backgroundColor = UIColor.whiteColor;
}

@end
